<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="../favicon.ico">
    <link href="/Public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link rel="stylesheet" href="/Public/css/ace.min.css" />
    <link href="/Public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/css/animate.css" rel="stylesheet">
    <link href="/Public/css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/normalize.css">

    <style type="text/css">
        .m-search{
            display: flex;
            margin-left: 30px;
        }
        .outbound{
            display: inline-block;
            /*float: left;*/
            text-align: center;

        }
        .level{
            color: #2a2c2e;
        }
        .p_level{
            margin: 5px;
        }
        .leder{
            margin-left: 2em;
        }

    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户信息-
                        <small>待审核用户列表</small>
                    </h5>
                    <div class="ibox-tools">
                        <form method="get" action="<{$SRVER_NAME}>/admin.php/AntiUser/wait_pass_list"  style="display: flex;   margin-right: 30px;" class="pull-right mail-search">
                            <div class="m-search" style="display: flex">
                                <input type="hidden" name="rid" value="<{$rid}>">
                                <input type="hidden" name="type" value="<{$url_type}>">
                                <input  class="form-control input-sm" type="text" name="user" placeholder="搜索用户" value="<{$user_content}>"/>
                                <div class="input-group-btn">
                                    <button type="submit" class="btn btn-sm btn-primary">
                                        搜索
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clients-list">


                <div class="ibox-content">

                    <!--<ul class="nav nav-tabs">-->
                        <!--<li id="record_0"><a href="<{$SRVER_NAME}>/admin.php/AntiUser/anti_user_list?page_first=<{$page_first}>&type=<{$url_type}>&type_status=0">待查列表</a></li>-->
                        <!--<li id="record_1"><a href="<{$SRVER_NAME}>/admin.php/AntiUser/anti_user_list?page_first=<{$page_first}>&type=<{$url_type}>&type_status=1">待审核列表</a></li>-->
                        <!--<li id="record_2"><a href="<{$SRVER_NAME}>/admin.php/AntiUser/anti_user_list?page_first=<{$page_first}>&type=<{$url_type}>&type_status=2">通过审核列表</a></li>-->
                        <!--<li id="record_3"><a href="<{$SRVER_NAME}>/admin.php/AntiUser/anti_user_list?page_first=<{$page_first}>&type=<{$url_type}>&type_status=3">未过审核列表</a></li>-->
                        <!--&lt;!&ndash;<if condition="($url_type eq 2) OR ($url_type eq 4)">&ndash;&gt;-->
                            <!--&lt;!&ndash;<li id="record_4"><a href="<{$SRVER_NAME}>/admin.php/AntiUser/anti_user_list?page_first=<{$page_first}>&type=<{$url_type}>&type_status=4">已认证人数</a></li>&ndash;&gt;-->
                        <!--&lt;!&ndash;</if>&ndash;&gt;-->
                        <!--&lt;!&ndash;<li id="record_3"><a href="<{$SRVER_NAME}>/admin.php/AntiUser/anti_user_list?page_first=<{$page_first}>&type=<{$url_type}>&type_status=3">已经解决</a></li>&ndash;&gt;-->
                    <!--</ul>-->
                    <div class="tab-content" style="height: 800px" id="index_cont">
                        <div  class="tab-pane active">
                            <div class="full-height-scroll">
                                <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="sample-table">
                        <thead>
                        <tr>
                            <th>用户名</th>
                            <th>手机号</th>
                            <th>性别</th>
                            <th>提交时间</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="user" id="vo" >
                            <tr id="tr_<{$vo.vid}>">
                                <td><{$vo.name}></td>
                                <td><{$vo.mobile}></td>
                                <td><{$vo.sex}></td>
                                <td><{$vo.commit_time}></td>
                                <td><{$vo.status}></td>

                                <td style="width: 350px">

                                        <!--<div class="outbound">-->
                                            <!--<if condition="$vo.check_status neq '2'">-->
                                                <a  onclick="fk_check_pass('<{$vo.vid}>')" class="btn btn-success btn-rounded">通过</a>

                                                 <a  onclick="fk_check_refuse('<{$vo.vid}>')" class="btn btn-success btn-rounded">不通过</a>
                                             <a  onclick="fk_check_return('<{$vo.vid}>')" class="btn btn-success btn-rounded">驳回</a>
                                                <!--<else/>-->
                                                <!--<a style="background-color: #7F7F7F" class="btn btn-success btn-rounded">修改</a>-->
                                            <!--</if>-->



                                        <!--</div>-->

                                </td>
                            </tr>
                        </volist>

                        </tbody>
                    </table>
                    <div class="dataTables_paginate paging_simple_numbers" >
                        <ul class="pagination">
                            <if condition="$tol gt 10">
                                <{$fpage}>
                            </if>
                        </ul>
                    </div>
                </div>
                </div>

                </div>

                </div>
                </div>
            </div>
            </div>
        </div>
    </div>
</div>


<script src="/Public/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>

<script>


    //通过
    function fk_check_pass(vid) {
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });

        var url= "<{$SRVER_NAME}>/admin.php/AntiUser/fk_check_result";
        layer.alert("确认提交？", {title: '提示框', icon: 3}, function (index) {

            $.post(url, {vid: vid,status:0}, function (data) {
                console.log('1111',vid);
                if (data.code == "1001") {
                    layer.alert(data.result, {title: '提示框', icon: 1}, function (index) {
                        layer.close(index);
                        window.location.href =  "";
                    });
                }
                else {
                    layer.alert(data.result, {title: '提示框', icon: 2});
                    layer.close(index);
                }

            });
        });

        layer.close(index);

    }

    //驳回
    function fk_check_return(vid) {
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });

        var url= "<{$SRVER_NAME}>/admin.php/AntiUser/fk_check_result";
        layer.alert("确认提交？", {title: '提示框', icon: 3}, function (index) {

            $.post(url, {vid: vid,status:2}, function (data) {
                console.log('1111',vid);
                if (data.code == "1001") {
                    layer.alert(data.result, {title: '提示框', icon: 1}, function (index) {
                        layer.close(index);
                        window.location.href =  "";
                    });
                }
                else {
                    layer.alert(data.result, {title: '提示框', icon: 2});
                    layer.close(index);
                }

            });
        });

        layer.close(index);

    }

    //不通过
    function fk_check_refuse(vid) {

        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });

        var url= "<{$SRVER_NAME}>/admin.php/AntiUser/fk_check_result";
        layer.alert("确认提交？", {title: '提示框', icon: 3}, function (index) {

            $.post(url, {vid: vid,status:1}, function (data) {
                console.log('1111',data);
                if (data.code == "1001") {

                    layer.alert(data.result, {title: '提示框', icon: 1},function (index) {
                        layer.close(index);
                        window.location.href =  "";
                    });


                }
                else {
                    layer.alert(data.result, {title: '提示框', icon: 2});
                    layer.close(index);
                }

            });
            layer.close(index);
        });
        layer.close(index);
    }

</script>
</body>
</html>
